package com.threefish.modules.sys.entity;

import com.threefish.common.entity.AbstractBaseEntity;
import org.nutz.dao.entity.annotation.*;

import java.io.Serializable;

/**
 * @author 黄川 306955302@qq.com
 * @date: 2018/5/30
 * 描述此类：消息、通知、公告
 */
@Table("sys_notice")
@Comment("系统消息公告通知表")
public class Notice extends AbstractBaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @Name
    @Prev(els = @EL("$me.uuid()"))
    @ColDefine(width = 32, notNull = true)
    @Comment("主键")
    @Column("uuid")
    private String id;

    @Column("type")
    @Comment("类型")
    @ColDefine(notNull = true)
    private Notice type;

    @Column
    @Comment("接收部门")
    @ColDefine(width = 2000)
    private String toDepts;

    @Column
    @Comment("接收人")
    @ColDefine(width = 2000)
    private String toUserids;

    @Column
    @Comment("角色接收")
    @ColDefine(width = 2000)
    private String toRoleids;

    @Column
    @Comment("摘要")
    @ColDefine(width = 2000)
    private String summary;

    @Column
    @Comment("快速链接地址")
    @ColDefine(width = 100)
    private String url;


    @Column
    @Comment("已阅读人员")
    @ColDefine(width = 5000)
    private String readUserids;

    @Column
    @Comment("已阅读人员")
    @ColDefine(width = 5000)
    private String readUserDesc;

    public String getReadUserids() {
        return readUserids;
    }

    public void setReadUserids(String readUserids) {
        this.readUserids = readUserids;
    }

    public String getReadUserDesc() {
        return readUserDesc;
    }

    public void setReadUserDesc(String readUserDesc) {
        this.readUserDesc = readUserDesc;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public Notice getType() {
        return type;
    }

    public void setType(Notice type) {
        this.type = type;
    }

    public String getToDepts() {
        return toDepts;
    }

    public void setToDepts(String toDepts) {
        this.toDepts = toDepts;
    }

    public String getToUserids() {
        return toUserids;
    }

    public void setToUserids(String toUserids) {
        this.toUserids = toUserids;
    }

    public String getToRoleids() {
        return toRoleids;
    }

    public void setToRoleids(String toRoleids) {
        this.toRoleids = toRoleids;
    }

    public String getSummary() {
        return summary;
    }

    public void setSummary(String summary) {
        this.summary = summary;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }
}
